package com.erp.service.impl;

import com.erp.entity.Loginfo;
import com.erp.mapper.LoginfoMapper;
import com.erp.service.LoginfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author pengyujin
 * @date 2020/11/10 12:05
 */
@Service
public class LoginfoServiceImpl implements LoginfoService {

    @Autowired
    private LoginfoMapper loginfoMapper;
    
    @Override
    public List<Loginfo> getAll() {
        return loginfoMapper.getAll();
    }

    @Override
    public int add(Loginfo loginfo) {
        return loginfoMapper.add(loginfo);
    }
}
